<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script>
		
		let list=[1,2,3,4];
		
		console.log(list.slice(0,2))
		console.log(list)
		
		
		let list1=[];
		
		console.log(list1.slice(0,2))
		console.log(list1)
	</script>
</html>